package com.hst.capacity.domain.model.request.driver;

import com.hst.capacity.domain.model.request.UploadParam;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class DriverAddParam implements UploadParam {

//    @NotEmpty(message = "司机ID[idDriver]不能为空,传入时为修改")
    private String idDriver;
    @NotEmpty(message = "姓名[fullName]不能为空")
    private String fullName;
    @NotEmpty(message = "司机工号[driverCode]不能为空")
    private String driverCode;

    @NotEmpty(message = "身份证号[idCard]不能为空")
    private String idCard;

    @NotEmpty(message = "家庭住址[address]不能为空")
    private String address;

    @NotEmpty(message = "驾驶证号[drivingLicenseNo]不能为空")
    private String drivingLicenseNo;
//    @NotEmpty(message = "驾驶证类型[drivingLicenseNo]不能为空")
    private String licenseType;
    private String licenseTime;
//    @NotEmpty(message = "驾驶证有效期起[drivingLicenseNo]不能为空")
    private String licenseStart;
//    @NotEmpty(message = "驾驶证有效期止[drivingLicenseNo]不能为空")
    private String licenseEnd;

    @NotEmpty(message = "手机号[mobile]不能为空")
    private String mobile;

    @NotEmpty(message = "性别[sex]不能为空")
    private String gender;

    private String regionCode;

    @NotEmpty(message = "运营商ID[idFranchisee]不能为空")
    private String idFranchisee;

    private String idAgent;

    private Integer jobType;

    @NotEmpty(message = "业务类型[serviceScope]不能为空")
    private String serviceScope;

    private String creatBy="system";//操作人
    //文件上传
    /** 司机头像保存路径 */
    private String icon;
    /** 司机全身照保存路径 */
    private String driverPhoto;
    /** 司机身份证正面保存路径 */
    private String idCardFront;
    /** 司机身份证反面保存路径 */
    private String idCardVerso;
//    /** 司机驾照主页保存路径 */
//    private String vehicleLicense;
//    /** 司机驾照副页保存路径 */
//    private String vehicleLicenseSub;
    /** 司机行驶证主页保存路径 */
    private String drivingLicense;
    /** 司机行驶证副页保存路径 */
    private String drivingLicenseSub;
    /** 司机二维码保存路径 */
    private String qrcode;

    public String[] uploadFile() {
        String[] files = {"idCardFront","idCardVerso","vehcileLicense","driverPhoto"};
        return files;
    }

//    public DriverAddParam() {
//        String[] files = {idCardFront,idCardVerso,vehcileLicense,driverPhoto};
//        this.setFiles(files);
//    }

//    public void setFiles() {
//        String[] returns = {idCardFront,idCardVerso,vehcileLicense,driverPhoto};
//        setFiles(returns);
//    }

}
